package com.cargohu.aishouyu.member.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改聊天常用语参数
 *
 * @author yww
 * @since 2023-11-28
 */
@Data
@Schema(description = "修改聊天常用语参数")
public class ChatPhraseUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @NotNull(message = "主键ID不能为空")
    private Long id;

    @Schema(description = "会员ID")
    private Long memberId;

    @Schema(description = "常用语内容")
    @NotBlank(message = "常用语内容不能为空")
    @Length(max = 65535, message = "常用语内容长度超过限制")
    private String content;

    @Schema(description = "标签ID")
    private Long labelId;

    @Schema(description = "删除标记，0未删除，1已删除")
    @Length(max = 1, message = "删除标记，0未删除，1已删除长度超过限制")
    private String delFlag;

}


